package com.zhiyou.books.service.impl;

import com.zhiyou.books.dao.EmailDao;
import com.zhiyou.books.pojo.Email;
import com.zhiyou.books.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmailServiceImpl implements EmailService {
    @Autowired
    EmailDao emailDao;
    @Override
    public List<Email> getAll() {
        return emailDao.selectAll();
    }
}
